<?php


namespace app\api\model;


use think\Model;

class PurchaseRelation extends Model
{
    protected $table = 'jxc_purchaserelation';

    public function purchase()
    {
        return $this->belongsTo(Purchase::class, 'pid');
    }

    public function product()
    {
        return $this->belongsTo(Product::class, 'goods_id');
    }
}
